<template>
  <div id="app">
    <router-view v-if="isRouterAlive"/>
  </div>
</template>
<script>
export default {
  name: 'app',
  data() {
    return {
      isRouterAlive: true
    }
  },
  provide () {
    return {
      reload: this.reload
    }
  },
  methods:{
    reload(){
      this.isRouterAlive = false
      this.$nextTick(() => {
        this.isRouterAlive = true
      })
    }
  }
}
</script>
<style lang="less">
body, html div {
  margin: 0;
}
.el-main {
  .el-pager li, .el-pagination button:disabled {
    background-color: transparent;
  }
}
.pager-title,
.el-page-header {
  background: #e5e9f2;
  padding: 10px 15px;
  border-radius: 4px;
  color: #333;
  font-size: 16px;
  margin-bottom: 20px;
}
.h2 {
  font-size: 18px;
  padding: 10px 0;
  font-weight: bold;
  margin-top: 10px;
  // &.line {
  //   border-bottom: 1px solid #eee;
  // }
  .tips {
    font-size: 12px;
  }
}
.success-text {
  color: #67C23A;
}
.danger-text {
  color: #F56C6C;
}

.el-pagination {
  margin-top: 10px;
  text-align: right;
}
.el-table thead th {
  background-color: #fafafa;
}
.search-from {
  margin-bottom: 20px;
  background: #fff;
  padding: 20px;
  padding-bottom: 0;
  border-radius: 4px;
}
.desc {
  margin-top: 50px;
  .title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  p {
    font-size: 14px;
    margin: 0;
    line-height: 30px;
  }
}
.buttons {
  text-align: center;
  margin-top: 15px;
  .el-button {
    min-width: 100px;
  }
}
a {
  color: #409EFF;
  text-decoration: none;
}
a + a {
  margin-left: 10px;
}
#app .el-input.is-disabled .el-input__inner {
  background-color: transparent;
  border-color: transparent;
  cursor: text;
  color: #333;
}
.section {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
}
.el-tabs.el-tabs--top {
  margin: -20px;
  .el-tabs__header {
    background: #fff;
    padding: 0 20px;
    .el-tabs__nav-wrap::after {
      background: transparent;
    }
  }
  .el-tabs__content {
    padding: 0 20px;
  }
}
</style>
